-
Home
-
Jetpack Protect
-
3.1.1 (latest)
-
Code
-
Classes
- Waf_Rules_Manager
Total Complexity |
37 |
Dependencies |
9 |
Dependents |
8 |
Total lines |
343 |
Lines of code |
161 |
Logical lines of code |
105 |
Comment lines |
118 |
Methods |
13 |
Properties |
0 |
Methods 13
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
generate_rules() |
A |
49 |
9 |
31 |
generate_automatic_rules() |
S |
53 |
6 |
22 |
generate_ip_rules() |
S |
51 |
5 |
26 |
get_rules_from_api() |
S |
53 |
4 |
23 |
update_rules_cron() |
S |
63 |
2 |
11 |
schedule_rules_cron() |
S |
70 |
2 |
6 |
reactivate_on_rules_option_change() |
S |
68 |
2 |
8 |
update_rules_if_changed() |
S |
66 |
2 |
9 |
add_hooks() |
S |
60 |
1 |
13 |
automatic_rules_enabled() |
S |
79 |
1 |
3 |
ip_allow_list_enabled() |
S |
79 |
1 |
3 |
ip_block_list_enabled() |
S |
79 |
1 |
3 |
wrap_require() |
S |
78 |
1 |
3 |